package com.white.algebra.service;

import com.white.algebra.domain.Discuss;
import com.white.algebra.domain.Discussion;

import java.sql.SQLException;
import java.util.List;

public interface DiscussService {
    List<Discussion> findAll(int startRecord, int size,String name) throws Exception;

    void insertDiscussion(Discussion discussion) throws SQLException;


    Discussion findDiscussionById(String id, int startRecord, int size) throws Exception;

    int getDiscussionNum(String name) throws SQLException;

    int getDiscussNum(String id) throws SQLException;

    void thumbUp(String id, String fun);

    void insertDiscuss(Discuss discuss) throws SQLException;
}
